//  IDVI 1.0 source copyright 1996 Garth A. Dickie
//
//  This source is free for non-commercial use.  No warranty, etc.
//  Please acknowledge reuse by including the line:
//
//  "Based in part on IDVI 1.0 source copyright 1996 Garth A. Dickie"
//
//  in your documentation and source code.  For commercial use or
//  distribution, please contact the author.  Please also send
//  questions, comments, bug reports, or fixes.
//
//  Best Regards,
//  Garth A. Dickie
//  dickie@elastic.avid.com

package ibook.v10.idvi.display;

import java.awt.Button;

class ButtonBlock extends Block {
    private String      label;
    private int         width;
    private int         height;

    ButtonBlock( String label, int width, int height ) {
        this.label = label;
        this.width = width;
        this.height = height;
    }

    View getView( ScaledColorScheme colorScheme, int scale, ViewPanel panel ) {
        return new ComponentView( new Button( label ), width, height, 0, panel );
    }
}
